package ch08.shili.shili13;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * @author 茜茜
 * @date 2024-11-26 21:18
 */
@Target(FIELD)
@Retention(RUNTIME)
@Deprecated
public @interface FruitColor {
    /**
     * 颜色枚举
     */
    public enum Color{BLUE,RED,GREEN}
    /**
     * 颜色属性
     */
    Color fruitColor() default Color.BLUE;
}
